home *** CD-ROM | disk | FTP | other *** search
- package Code.LIB
- {
- import Code.LIB.SOUND._bu111;
- import Code.OPTIONS._gs337;
- import flash.display.Sprite;
- import flash.events.Event;
- import flash.text.TextField;
- import flash.text.TextFormat;
- import flash.utils.getTimer;
-
- public class _se17 extends _be548
- {
- public var menuItem:int = -1;
-
- private var iTimer:int;
-
- protected var speakerMount:_oo505;
-
- protected var iBackground:_oo505;
-
- private var iFrame:_oo505;
-
- private var iDebugTextFormat:TextFormat;
-
- private var iDebugText:TextField;
-
- protected var iWindow:_gt710;
-
- public function _se17()
- {
- var _loc1_:Sprite = null;
- menuItem = -1;
- iTimer = getTimer();
- super();
- _rs402._be412();
- _bu111._pp317(_gs337._bu111);
- _loc1_ = new _gs337.TButtonMount();
- _loc1_.scaleX = 70 / 200;
- _loc1_.scaleY = 36 / 100;
- _loc1_.alpha = 0.4;
- speakerMount = _tk11._ln87(_loc1_);
- speakerMount._xe768(564,5);
- if(_rs402.iDebug)
- {
- iDebugText = new TextField();
- iDebugTextFormat = new TextFormat(null,20,16777215);
- iDebugText.x = 30;
- super.addChild(iDebugText);
- }
- _cg33._pp317();
- if(!_cg33._ss555)
- {
- _bu111._yt336 = 0.6;
- _bu111._uk57 = 0.9;
- }
- else
- {
- _bu111._yt336 = _cg33._ss555[1].prMVolume;
- _bu111._uk57 = _cg33._ss555[1].prSVolume;
- }
- this.addEventListener(Event.ENTER_FRAME,onEnterFrame);
- _rs402.prStage.addEventListener(Event.RESIZE,onResize);
- iFrame = new _oo505();
- addChild(iFrame);
- }
-
- protected function _vc572() : void
- {
- var _loc1_:Sprite = null;
- if(iBackground)
- {
- removeChild(iBackground);
- }
- _loc1_ = new _gs337.BG() as Sprite;
- _loc1_.scaleX = _rs402.prStage.stageWidth / _loc1_.width;
- _loc1_.scaleY = _rs402.prStage.stageHeight / _loc1_.height;
- _loc1_.x -= _rs402._ru276 * _rs402._oy577;
- _loc1_.y -= _rs402._ob68 * _rs402._oy577;
- this.iBackground = _tk11._ev532(_loc1_);
- addChildAt(iBackground,0);
- }
-
- public function _ug618() : void
- {
- }
-
- protected function onResize(param1:Event) : void
- {
- var _loc2_:_be548 = null;
- var _loc3_:TextField = null;
- var _loc4_:int = 0;
- var _loc5_:_oo505 = null;
- var _loc6_:Sprite = null;
- _rs402._be412();
- if(this.iWindow)
- {
- iWindow._dx150();
- this.removeChild(iWindow);
- this.iWindow = null;
- if(!_cg33._ss555)
- {
- this.menuItem = _gs337.miEnterName;
- }
- else
- {
- menuItem = _gs337.miMenu;
- }
- this._ug618();
- }
- if(_rs402.iDebug)
- {
- _loc2_ = new _be548();
- _loc2_.graphics.clear();
- _loc2_.graphics.lineStyle(2,16777215);
- _loc2_.graphics.drawRect(0,0,640 * _rs402._oy577,480 * _rs402._oy577);
- _loc2_.graphics.lineStyle(1,16777215,0.4);
- _loc4_ = 0;
- while(_loc4_ < 480 / 30)
- {
- _loc3_ = new TextField();
- _loc3_.text = (_loc4_ * 30).toString();
- _loc3_.x = 0;
- _loc3_.y = (_loc4_ * 30 + 2) * _rs402._oy577;
- _loc2_.graphics.moveTo(0,_loc4_ * 30 * _rs402._oy577);
- _loc2_.graphics.lineTo(640 * _rs402._oy577,_loc4_ * 30 * _rs402._oy577);
- _loc2_.addChild(_loc3_);
- _loc4_++;
- }
- _loc4_ = 0;
- while(_loc4_ < 640 / 30)
- {
- _loc3_ = new TextField();
- _loc3_.text = (_loc4_ * 30).toString();
- _loc3_.y = 0;
- _loc3_.x = (_loc4_ * 30 + 2) * _rs402._oy577;
- _loc2_.graphics.moveTo(_loc4_ * 30 * _rs402._oy577,0);
- _loc2_.graphics.lineTo(_loc4_ * 30 * _rs402._oy577,480 * _rs402._oy577);
- _loc2_.addChild(_loc3_);
- _loc4_++;
- }
- _loc5_ = _tk11._ev532(_loc2_);
- this.iFrame.bitmapData = _loc5_.bitmapData;
- this.iFrame._vq458 = _loc5_._vq458;
- this.iFrame._vg471 = _loc5_._vg471;
- }
- this.x = (_rs402.prStage.stageWidth - 640 * _rs402._oy577) / 2;
- this.y = (_rs402.prStage.stageHeight - 480 * _rs402._oy577) / 2;
- if(_bu111.iMusic)
- {
- _bu111.iMusic._vq458 = 574;
- _bu111.iSound._vq458 = 604;
- _bu111.iMusic._vg471 = 12;
- _bu111.iSound._vg471 = 12;
- if(speakerMount.parent)
- {
- removeChild(speakerMount);
- }
- _loc6_ = new _gs337.TButtonMount();
- _loc6_.scaleX = 70 / 200;
- _loc6_.scaleY = 36 / 100;
- _loc6_.alpha = 0.5;
- speakerMount = _tk11._ln87(_loc6_);
- speakerMount._xe768(564,5);
- addChild(speakerMount);
- _bu111.iMusic._wy690();
- _bu111.iSound._wy690();
- }
- this._vc572();
- addChild(speakerMount);
- addChild(_bu111.iSound);
- addChild(_bu111.iMusic);
- }
-
- public function onEnterFrame(param1:Event) : void
- {
- var _loc2_:int = 0;
- if(_rs402.iDebug)
- {
- _loc2_ = 1000 / (getTimer() - iTimer);
- iDebugText.text = _loc2_.toString();
- iDebugText.setTextFormat(iDebugTextFormat);
- iTimer = getTimer();
- }
- }
- }
- }
-
-